
class Smokingmachines {
    //成员变量
    public String brond;//品牌
    public String type;//型号
    public double length;//长
    public double width;//宽
    public double height;//高
    public double weight;//体重

    //成员方法
    public void set(String brond,String type,double length,
                    double width,double height,double weight) {
        this.brond = brond;
        this.type = type;
        this.length = length;
        this.width = width;
        this.height = height;
        this.weight = weight;
    }
    public void open() {
        System.out.println("打开吸烟机");
    }
    public void off() {
        System.out.println("关闭吸烟机");
    }
}
public class Test {
    public static void main(String[] args) {

    }
    public static void main2(String[] args) {
        Date date = new Date();
        //date.year = 2004;
        date.month = 10;
        date.day = 25;
        date.printDate();
    }
    public static void main1(String[] args) {
        Smokingmachines smokingmachines = new Smokingmachines();
        smokingmachines.set("品牌","型号",10.2,
                            13.5,18.4,25.2);
    }
}
